import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;


/**
 * @author Juve
 *
 */
public class POTtableTest {
	
	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		POTtable.startPOTtable();
	}

	
	/**
	 * Module Name: testIsDefinedA
	 * Description: method that is asserting a positive test result
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testIsDefinedA() {
		String dir = "START";
		boolean test = POTtable.isDefined(dir);
		assertEquals("Should be true", test, true);
	}
	
	/**
	 * Module Name: testIsDefinedB
	 * Description: method that is asserting a negative test result
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testIsDefinedB() {
		String dir = "NOT";
		boolean test = POTtable.isDefined(dir);
		assertEquals("Should be False", test, false);
	}

	/**
	 * Module Name:testCanHaveLabel
	 * Description:
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testCanHaveLabel() {
		String dir = "ADR";
		boolean test = POTtable.canHaveLabel(dir);
		assertEquals("Should be true", test, true);
	}

	/**
	 * Module Name: testRequiresLabel
	 * Description: method that is asserting a positive test result
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testRequiresLabel() {
		String dir = "END";
		boolean test = POTtable.requiresLabel(dir);
		assertEquals("Should be false", test, false);
	}

	/**
	 * Module Name: testDescription
	 * Description: method that is asserting a positive test result
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testDescription() {
		String dir = "EQU";
		String test = POTtable.description(dir);
		assertEquals("Should be true", test, "equates the label string to a replace value");
	}

	/**
	 * Module Name: testConsumesMemory
	 * Description: method that is asserting a positive test result
	 * Calling Sequence
	 * 		Input Parameters
	 * 		Output Parameters
	 * Error Conditions Tested:
	 * Error Messages Generated:
	 * Original Author:
	 * Procedure Creation Date:
	 * Modification Log:
	 * 	 Who/When/Why
	 * Coding Standards Met: "Signed Code Leader(Jaron)"
	 * Testing Standards Met: "Signed Test Leader(Jamie)"
	 */
	@Test
	public void testConsumesMemory() {
		String dir = "word-num";
		boolean test = POTtable.consumesMemory(dir);
		assertEquals("Should be true", test, true);
	}
}

